﻿@model RedSand.Site.Models.ChangePasswordModel
<div class="dialog change-password" title="Change Password" style="width:378px">
    @using (Ajax.BeginForm(AdminAjaxOptions.ChangePassword))
    {
        <div class="dialog-content">
            <div class="form-cell none-float">
                @Html.LabelFor(model => model.OldPassword)
                @Html.Hidden("UserID", (int)ViewBag.UserID)
                @Html.EditorFor(model => model.OldPassword)
            </div>
            <div class="form-cell none-float">
                @Html.LabelFor(model => model.NewPassword)
                @Html.EditorFor(model => model.NewPassword)
            </div>
            <div class="form-cell none-float">
                @Html.LabelFor(model => model.ConfirmPassword)
                @Html.EditorFor(model => model.ConfirmPassword)
            </div>
            <div class="clr"></div>
        </div>
        <div class="dialog-footer">
            <input type="submit" value="Save" />
            <input type="button" value="Cancel" onclick="closeDialog('.change-password')" />
        </div>
    }
</div>
